home *** CD-ROM | disk | FTP | other *** search
- /*
- TESTCRC.C
-
- Kevin Dean
- Fairview Mall P.O. Box 55074
- 1800 Sheppard Avenue East
- Willowdale, Ontario
- CANADA M2J 5B9
- CompuServe ID: 76336,3114
-
- November 16, 1990
-
- This program demonstrates the anti-virus CRC algorithm in VALIDCRC.C.
- The response to an invalid CRC is entirely up to the programmer.
-
- This code is public domain.
- */
-
-
- #include <stdio.h>
-
- #include "viruscrc.h"
-
-
- /***/
- main(void)
- {
- if (isvalidcrc("TESTCRC.EXE"))
- puts("CRC is valid.");
- else
- puts("*** WARNING *** Program's CRC is invalid.\n"
- "This program may have been infected by a virus.");
-
- return (0);
- }